package org.mzx.shortLink.adminn.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.mzx.shortLink.adminn.domain.entity.TUser;
import org.mzx.shortLink.adminn.dto.Request.LoginDtoReq;
import org.mzx.shortLink.adminn.dto.Request.TUserDtoReq;
import org.mzx.shortLink.adminn.dto.Request.TUserUpdateReq;
import org.mzx.shortLink.adminn.dto.Response.LoginDtoResp;
import org.mzx.shortLink.adminn.dto.Response.UserDto;
import org.mzx.shortLink.starter.convention.Result.Result;

/**
* @author mazhenxi
* @description 针对表【t_user】的数据库操作Service
* @createDate 2024-11-23 19:53:21
*/
public interface TUserService extends IService<TUser> {

    /**
     * 根据用户名查询用户
     * */
    UserDto getByName(String userName);

    /**
     *注册
     * */
    Boolean zhuCe(TUserDtoReq user);

    /**
     *  检查某个id可否用
     */
    Boolean isExist(String userName);

    /**
     *  更新用户信息
     */
    Void Update(TUserUpdateReq user);

    /**
     *  登录
     */
    LoginDtoResp login(LoginDtoReq requestParam);

    /**
     * 退出登录
     * */
    Void loginOut(String username);
}
